package adapter

import "utilx/logx"

type Mac struct {
}

func (m *Mac) InsertIntoUsb() {
	logx.Warn("Mac:Lightning connector is plugged into mac machine.")
}

// 不支持 接口
type Windows struct{}

func (w *Windows) insertIntoUSBPort() {
	logx.Warn("Windows: USB connector is plugged into windows machine.")
}

// WindowsAdapter 选择为windows适配mac  構建適配器
type WindowsAdapter struct {
	windowMachine *Windows
}

func (w *WindowsAdapter) InsertIntoUsb() {
	logx.Debug("Adapter converts Lightning signal to USB.")
	w.windowMachine.insertIntoUSBPort()
}
